package com.java.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 大章
 * 
 * @author jl
 * @since 2020-10-05 08:42:54
 */
@Data
@TableName("chapter")
public class Chapter implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.INPUT)
	private String id;
	/**
	 * 课程id
	 */
	@NotBlank(message = "课程id不能为空")
	private String courseId;
	/**
	 * 名称
	 */
	@NotBlank(message = "大章名称不能为空")
	private String name;

}
